package com.huijun.coupon.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huijun.common.utils.PageUtils;
import com.huijun.common.utils.Query;

import com.huijun.coupon.dao.SseckillSkuNoticeDao;
import com.huijun.coupon.entity.SseckillSkuNoticeEntity;
import com.huijun.coupon.service.SseckillSkuNoticeService;


@Service("sseckillSkuNoticeService")
public class SseckillSkuNoticeServiceImpl extends ServiceImpl<SseckillSkuNoticeDao, SseckillSkuNoticeEntity> implements SseckillSkuNoticeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SseckillSkuNoticeEntity> page = this.page(
                new Query<SseckillSkuNoticeEntity>().getPage(params),
                new QueryWrapper<SseckillSkuNoticeEntity>()
        );

        return new PageUtils(page);
    }

}